<template>
  <div class="block">
    <el-date-picker
      v-model="dataValue"
      type="daterange"
      align="right"
      unlink-panels
      range-separator="至"
      start-placeholder="开始日期"
      end-placeholder="结束日期"
      @blur="serchTime"
      value-format="yyyy-MM-dd"
    >
    </el-date-picker>
  </div>
</template>

<script>
export default {
  data() {
    return {
      dataValue: "",
    };
  },
  methods: {
    serchTime() {
      this.$emit("blur", this.dataValue);
    },
  },
};
</script>

<style lang="scss" scoped>
</style>